Amazon Web Services (AWS) - Interview Questions and Answers for 'Web Service' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers - Order By Newest

   next 30
 Q61. Can we have internal or private ELB as origin in cloudfront ?Amazon Web Services (AWS)
Ans. No, it should be public as cloudfront doesn't have a way to access private ELB.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws elb  amazon elb  aws cloudfront  amazon cloudfront


 Q62. Difference between NAT Instances and NAT GatewayAmazon Web Services (AWS)
Ans. High bandwidth and availability in NAT Gateway
NAT Gateway is completely managed by AWS
NAT Gateway is auto scalable
NAT Instance is just like EC2 instance and hence backed by security group
NAT Instance can be used as bastion host whereas NAT Gateway cannot be.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws nat instance  aws nat gateway


 Q63. Why would a cloud customer use resources in multiple regions and zones ?Cloud Computing
Ans. 1. Fault Tolerance
2. Better Access by bringing the application closer to the users.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Google Cloud Computing (GCP)  Amazon Web Services (AWS)  Availability Zones  Regions and Zones  Infrastructure


 Q64. What are system integrators in Cloud Computing?Cloud Computing
 This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Amazon Web Services (AWS)   Google Cloud Platform (GCP)


 Q65. Which markup languages can be used in restful web services ? Rest
Ans. XML and JSON ( Javascript Object Notation ).

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   web services   rest   java   j2ee   xml   json   architecture      basic        frequent


 Q66. Why Web services use HTTP as the communication protocol ?Web Service
Ans. With the advent of Internet, HTTP is the most preferred way of communication. Most of the clients ( web thin client , web thick clients , mobile apps ) are designed to communicate using http only. Web Services using http makes them accessible from vast variety of client applications.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     rest   webservices   web servuces   http   architecture   technical architect


 Q67. Difference between TCP and UDP ?Networking
Ans. http://www.cyberciti.biz/faq/key-differences-between-tcp-and-udp-protocols/

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   network programming   architecture   Cloud Computing  Google Cloud Computing (GCP)  Amazon Web Services (AWS)     Asked in 3 Companies


 Q68. Name some Java REST services frameworks ?Rest
Ans. Jersey , Restlet , RestX, Spring , RestEasy ,Restfulie, Play Framework

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   rest   web services   frameworks


 Q69. If you are given a choice to have a functionality shared either through dependency or through a Web service, which one will you choose ?Solution
Ans. Web Service promotes looser coupling but with comes with coding and performance overheads. Jars provide better performance and may be lesser coding but are problematic with update distribution. If the situation doesn't require frequent dependency updates and if it's only read operation of persistence, Having dependencies should be a better choice , otherwise web service.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Design  Web Service vs Jar


 Q70. Can we send a request body with the Get Request ? If not, What is the alternate to pass message to the Get Request ?Web Service
Ans. Request Body in case of Get Request has no meaning and hence it's not parsed when the request is received. Alternatively Request Parameters are passed as either Path Params or Query Params.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     rest  web services  http  http methods  get request


 Q71. Is it Necessary to send a POST request with the Payload or a body ?Web Service
Ans. No, we can also send an empty body with the POST Request.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Get Request   Rest        rare


 Q72. What are the different ways in which information can be sent to server in web service call ?Web Service
Ans. 1. As Request Param
2. As Path Param
3. Part of Payload / Body in case of PUT and POST Request

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     web service   rest      basic        frequent


 Q73. What is a web service ?Java EE
Ans. A Web service is a service offered by one system to another, for communication over web through http. XML are JSON are usually used for sending across information from one system to another.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     web service     Asked in 2 Companies      basic        frequent


 Q74. How to create stateful Rest Services ?Rest
Ans. There is no direct way to make stateful REST service but when first time request send to server, generate the token on server and send back to client. When every time new request is send the token is send to identify the request is coming from same client.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Rest  Web Services     Asked in 1 Companies


 Q75. Explain your experience with Java, spring and web services?General
Ans. Have worked on Java 7 and Java 8, In Java 8 , Worked with streams , lambda expression and default methods.

Have worked on both Spring Mvc and Spring Boot, using Spring dependency injection, Rest services , AOP , JDBC and Hibernate integration.

Have worked on Rest services using Spring and Spring Boot. Have worked on SOAP web services too.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     spring  web services     Asked in 1 Companies


 Q76. What is stub and skelton ?SOAP
Ans. RMI uses a standard mechanism for communicating with remote objects i.e stubs and skeletons. A stub for a remote object acts as a client's local representative. The caller invokes a method on the local stub which is responsible for carrying out the method call on the remote object.

Stub resides at the client that upon calling whose method results in establishing connection with the server, serializing and mar shelling the request and then waiting for the response whereas skelton resides at the server that receives the request, unmarshal it and then deserialize to fulfil the request.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     web service  soap  stub  skelton  RMI


 Q77. What are the benefits of Rest services over using SOAP ?Web Service
Ans. Rest services are light weight and hence facilitate faster development and involve less overheads compared to SOAP.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve             frequent


 Q78. How would you go about creating a get rest service if it requires multitude of params or inputs ?Rest
Ans. If the number of input values is large, we can go about passing them as query params instead of path params. If the number is even larger and complex , its better to create a post service that behaves like a get service. Though this practice is not recommended but technically it can be accomplished.I dont mind doing it if the exceptionally large number of input would make it much more confusing.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     rest  restful web services


 Q79. What is AWS or Amazon Web Services ?Amazon Web Services (AWS)
Ans. These are the platforms or set of services provided by Amazon for cloud services , database storage , content delivery and other business applications and solutions.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws  amazon web service


 Q80. What are the different layers of cloud computing ?Infrastructure
Ans. Paas - Platform as a service
Iaas - Infrastructure as a service
Saas - Software as a service

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     cloud computing  Amazon Web Service (AWS)  Google Cloud Platform (GCP)


 Q81. If given a choice , which one would you prefer to send params to the Get service , path params or query param ?Web Service
Ans. If the number of params is quite large , I would prefer to either split it with majority of it in query params or all in query params.

If the params are all mandatory , I would keep it as path params. If it's optional , I would keep it as query param so as to keep consistent base url.

If we don't require the param name , then they can be kept as path params as query params necessitates the usage of param name.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Web Service  Get service  path vs query param  Rest  query param  path param


 Q82. Is it necessary to specify "employeeId" with @PathParam("employeeId") in this case,

@Path("/{employeeId}")
public String employeeInfo(@PathParam("employeeId") Long employeeId){
}
Rest
Ans. No, it's optional as the name of path param required is same as method param name in this case.

Even the declaration as following should work -

@Path("/{employeeId}")
public String employeeInfo(@PathParam Long employeeId){
}

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Web Service  Get service  Rest  path param


 Q83. What is Amazon EC2 ?Amazon Web Services (AWS)
Ans. Amazon Elastic Compute Cloud or EC2 provides scalable computing capacity in the AWS cloud. It can be used to create Virtual Environments , storage and configure. EC2 enables to upgrade or downgrade infrastructure according to the rules defined ( with fluctuation in latency, traffic etc )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws  aws ec2  aws computing  amazon cloud computing  amazon ec2  Elastic Compute Cloud  Amazon Elastic Compute Cloud     Asked in 2 Companies


 Q84. What is the difference between latency, response time and processing time ?Web Service
Ans. Latency is the delay incurred while communicating a message i.e the time took the message in transit over network.

processing time is the delay it took for the server to process the request.

Response time is the sum total of latency and processing time.

For example -

Let's say it takes 1 ms for the request to reach from client to server and similar 1 ms for the response to come back to client. Moreover it takes approx 10 ms for the application to process the request. So The response time would be outward latency + processing time + inward latency = 12 ms

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     latency   response time    processing time


 Q85. What is the difference between Elastic Compute Cloud and Elastic Beanstalk ?Amazon Web Services (AWS)
Ans. EC2 is Amazon computing service whereas Elastic Beanstalk is the AWS service for deploying and managing web applications.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Elastic Compute Cloud   EC2   Elastic Beanstalk


 Q86. How do you check logs for your application in AWS ?Amazon Web Services (AWS)
Ans. We can do it by either going to Elastic Beanstalk -> Respective instance -> Logs

or using CloudWatch -> Logs -> Respective Log Group

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws logs  cloudwatch logs  elastic beanstalk


 Q87. What is AWS CloudWatch ?Amazon Web Services (AWS)
Ans. Amazon CloudWatch is a monitoring service for AWS cloud resources like Beanstalk and DB instances. We can use CloudWatch to monitor the state of resources, collect metrices, set alarms and appropriate response to the alarm state.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws cloudwatch  amazon cloudwatch  aws


 Q88. What is a shard in Kinesis stream ?Amazon Web Services (AWS)
Ans. A shard is a uniquely identified group of data records in a stream or we can say that Shard is a partition in Kinesis stream. A shard supports a fixed bandwidth i.e fixed number of messages per second. The total capacity of the stream is the sum of the capacities of its shards. If the data rate changes, we can allocate / deallocate more shards to accommodate that.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Amazon AWS  AWS  Amazon Kinesis Stream  shard  shard in amazon kinesis


 Q89. What is the relationship between shard and partition key in kinesis stream ?Amazon Web Services (AWS)
Ans. A partition key is used to group data by shard within a stream. A partition key identifies which shard the message belong to.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Amazon AWS  AWS  Amazon Kinesis Stream  shard  shard in amazon kinesis   partition key in amazon kinesis   shard and partition key


 Q90. How can we know how many instances are currently in service within an Elastic Beanstalk environment ?Amazon Web Services (AWS)
Ans. We can go to respective environment and check configuration and then scaling. It mentions that as current status like

Current status:

2 instance(s) in service, Min: 1, Max: 4


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     AWS  Amazon AWS  Amazon EC2  Elastic Beanstalk  Auto Scaling


previous 30   next 30

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: